package com.tc.dao;
import com.tc.pojo.AdvertisingIMG;
import org.apache.ibatis.annotations.Select;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/****
 * @Author:admin
 * @Description:AdvertisingIMG的Dao
 * @Date 2019/6/14 0:12
 *****/
public interface AdvertisingIMGMapper extends Mapper<AdvertisingIMG> {

    @Select("select * from advertisingIMG Where pid=#{pid} and type=1")
    public List<AdvertisingIMG> findIMGbyPid(int pid);

    @Select("select * from advertisingIMG Where pid=#{pid} and type=2")
    public List<AdvertisingIMG> findCdyIMGbyPid(int pid);
}
